public class Car extends Vehicle {
    private int passengers;  //载人数
    private String brand; // 品牌名称
    //无参构造函数
    public Car() {
        this(0, "");
    }
    //有参构造函数
    public Car(int passengers, String brand) {
        this.passengers = passengers;
        this.brand = brand;
    }
    //输出函数
    public void Print() {
        System.out.println("品牌为" + brand);
        System.out.println("载人数为" + passengers + "人");
        super.Print();
    }
}
